import './assets/main.css'
import router from './router'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import App from './App.vue'

import BaiduMap from 'vue-baidu-map-3x'
// 如果您正在使用CDN引入，请删除下面一行。
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// //引入高德地图
// import AMapLoader from '@amap/amap-jsapi-loader'
// window._AMapSecurityConfig = {
//   securityJsCode: 'd3ee781dfdf183fea1385f06ce847607'
// }

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(BaiduMap, {
  ak: 'reqQLIK1vLsMdve3nfoM3k4IHHNCrBIS'
})

app.use(ElementPlus)

app.use(createPinia())
app.use(router)

app.mount('#app')
